package com.zzxy.mybatis4.entity;

import java.util.Date;
import java.util.List;

public class User {
    private Integer id;
    private String username;
    private Date birthday;
    private String sex;
    private String address;
    private List<order> orders;

    public List<order> getOrders() {
        return orders;
    }

    public void setOrders(List<order> orders) {
        this.orders = orders;
    }

    //    public  User (Integer id,String username,String sex,String address,Date birthday) {
//        this.id=id;
//        this.username=username;
//        this.sex=sex;
//        this.address=address;
//        this.birthday=birthday;
//    }
    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", birthday=" + birthday +
                ", sex='" + sex + '\'' +
                ", address='" + address + '\'' +
                ", orders='" + orders.toString() + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {this.birthday = birthday;
    }

    public void setSex(String Sex) {

    }
    public void setAddress(String Address) {

    }

    public String getSex() {
        return sex;
    }

    public String getAddress() {
        return address;
    }
}
